package org.fight;

import akka.actor.AbstractActor;
import akka.actor.Props;

/**
 * @author : DengYing
 * @CreateDate : 2017年11月6日 上午10:54:03
 * @Description ：Please describe this document
 */
public class HelloWorld extends AbstractActor {

	public static Props props() {
    return Props.create(HelloWorld.class);
  }
	
	public void preStart() {
		
	}

	@Override
	public void postStop() {
		
	}

	@Override
	public Receive createReceive() {
		return receiveBuilder()
		        .matchEquals("stop", s -> {
		          getContext().stop(getSelf());
		        })
		        .build();
	}

}
